{extend name="layout" /}

{block name="main"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>{$meta_title}</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-4 m-b-xs">
                            <div class="btn-group">
                            	<label class="btn btn-sm btn-white"><i class="fa fa-wrench"></i></label>
                                <a href="{:url('add')}" class="btn btn-sm btn-primary">新增</a>
                                
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <div class="input-group">
                                <input type="text" placeholder="请输入关键词" class="input-sm form-control"> <span class="input-group-btn">
                                    <button type="button" class="btn btn-sm btn-primary"> 搜索</button> </span>
                            </div>
                        </div>
                    </div>
                    <table class="table table-striped table-bordered table-hover " id="editable">
                        <thead>
                            <tr>
                                <th>ID</th>
                                <th>订单号</th>
                                <th>用户账号</th>
                                <th>用户姓名</th>
                                <th>用户电话</th>
                                <th>司机账号</th>
                                <th>司机姓名</th>
                                <th>司机电话</th>
                                <th>路线选择</th>
                                <th>车辆名称</th>
                                <th>订单金额</th>
                                <th>状态</th>
                                <th>更新时间</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                        	{notempty name="list"}
                        	{volist name="list" id="v"}
                            <tr class="gradeX">
                                <td>{$v.id}</td>
                                <td>{$v.order_id}</td>
                                <td>{$v.userid}</td>
                                <td>{$v.realname}</td>
                                <td>{$v.mobile}</td>
                                <td>{$v.loginid}</td>
                                <td>{$v.deriver_name}</td>
                                <td>{$v.tel}</td>
                                <td>{$v.route_name}</td>
                                <td>{$v.car_name}</td>
                                <td>￥{$v.price}元</td>
                                <td>
									<div>
		                            {if $v['status'] eq 1}
		                              <span class="yes" ><i class="fa fa-check-circle"></i>未接单</span>
		                            {elseif $v['status'] eq 0/}
		                              <span class="no" ><i class="fa fa-ban"></i>订单中</span>
		                            {else /}
		                            <span class="wait"><i class="fa fa-fw"></i>完成订单</span>
		                            {/if}
		                          	</div>
                                </td>
                                <td>{$v.updatetime}</td>
                                <td class="center">
                                	<a href="{:url('edit',['id'=>$v.id])}" class="btn btn-outline btn-primary btn-xs dim" title="修改">		<i class="fa fa-pencil fa-fw"></i>
				                    </a>
				                    <a data-url="{:url('delete', ['ids' => $v['id'], 'table' => 'deriver'])}" class="btn btn-outline btn-danger btn-xs dim confirm" title="删除">
				                    	<i class="fa fa-times fa-fw"></i>
				                    </a>
                                </td>
                            </tr>
                            {/volist}
                            {else /}
							<tr class="gradeX" cols="5">没有数据</tr>
                            {/notempty}
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}